package com.test.clyq.entity;

import com.cplatform.util2.TimeStamp;
import com.test.entity.Item;
import com.test.json.JsonUtil;

/**
 * UsersLog. <br>
 * 用户访问日志实体.
 * <p>
 * Copyright: Copyright (c) 2010-8-17 下午05:00:31
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: liuxl@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
public class VisitLogs implements Item {

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	public Long categoryId; // 栏目ID

	public Long entityId; // 文章ID

	public String entityTitle; // 文章标题

	public Long id;

	public String mobileNum; // 手机号码

	public String visitTime = TimeStamp.getTime(TimeStamp.YYYYMMDDhhmmss);

	// public String categoryName;// 栏目名称

	public VisitLogs() {
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public Long getEntityId() {
		return entityId;
	}

	public String getEntityTitle() {
		return entityTitle;
	}

	public Long getId() {
		return id;
	}

	public String getMobileNum() {
		return mobileNum;
	}

	public String getVisitTime() {
		return visitTime;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public void setEntityId(Long entityId) {
		this.entityId = entityId;
	}

	public void setEntityTitle(String entityTitle) {
		this.entityTitle = entityTitle;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setMobileNum(String mobileNum) {
		this.mobileNum = mobileNum;
	}

	public void setVisitTime(String visitTime) {
		this.visitTime = visitTime;
	}

	public String toJSON() {
		return JsonUtil.getJsonStringFromObject(this);
	}

	public String toXML() {
		// TODO Auto-generated method stub
		return null;
	}

}
